/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: ZJZ
 * @Date: 2021-06-21 17:34:31
 * @LastEditors: 朱江洲
 * @LastEditTime: 2021-10-08 11:30:28
 */
import request from "@/utils/request.js";

//获取考试批次详情

export const getExamination = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/list',
        params
    })
}

// 新增考试批次

export const addServiceProvide = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/examBatch',
        data
    })
}

// 获取考试批次详情

export const getexamBatch = id => {
    return request({
        method: 'get',
        url: `/serviceProvide/examBatch/${id}`,
    })
}

// 修改报名字段

export const putexamBatch = data => {
    return request({
        method: 'put',
        url: `/serviceProvide/examBatch`,
        data
    })
}
// 删除考试批次

export const delexamBatch = data => {
    return request({
        method: 'delete',
        url: `/serviceProvide/examBatch/${data}`
    })
}
// 获取考试信息名称集合
export const getqueryExam = () => {
    return request({
        method: 'get',
        url: `/serviceProvide/examInformation/queryExam`,
    })
}
// 请求全国地区集合
export const getArea = () => {
    return request({
        method: 'get',
        url: `/website/products/getArea`,
    })
}
// 查询报名自定义字段列表

export const getexamInformation = params => {
    return request({
        method: 'get',
        url: `/serviceProvide/examInformation/list`,
        params
    })
}

// 新增考试信息
export const addexamInformation = data => {
    return request({
        method: 'post',
        url: `/serviceProvide/examInformation`,
        data
    })
}

// 修改考试信息

export const putexamInformation = data => {
    return request({
        method: 'put',
        url: `/serviceProvide/examInformation`,
        data
    })
}

// 删除考试信息
export const delexamInformation = data => {
    return request({
        method: 'delete',
        url: `/serviceProvide/examInformation/${data}`,
    })
}

// 高级筛选
export const addScene = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/scene/addScene',
        data
    })
}

// 查询场景列表

export const queryScene = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/scene/queryScene',
        params
    })
}


// 导出
export const getExport = () => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/export',

    })
}
// 自定义字段
export const customField = data => {
    return request({
        method: 'post',
        url: '/serviceProvide/customField/add',
        data
    })
}
// 获取自定义字段
export const getCustomFieldList = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/customField/list',
        params
    })
}
// 获取负责人
export const distriBution = () => {
    return request({
        method: "get",
        url: '/serviceProvide/distribution/getPersonLiable'
    })
}
// 更换负责人
export const bindingPersonLiable = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/changeDirector',
        params
    })
}
// 获取字段来源
export const getFieldSource = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/customField/getFieldSource',
        params
    })
}
// 上架
export const upeShelf = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/upShelf',
        params
    })
}

// 上架
export const downShelf = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/downShelf',
        params
    })
}

// 是否有上传文件
export const getIncludFile = params => {
    return request({
        method: 'get',
        url: '/serviceProvide/examBatch/getIncludFile',
        params
    })
}
